<?php
	$submit=$_POST['Submit'];
	if($submit == Submit){
$status = "OK";
	$email=$_POST['email'];
	$message=$_POST['message'];
	$subject=$_POST['subject'];
$name=$_POST['name'];
$company=$_POST['company'];

$msg="";
$msgerror="";
//error_reporting(E_ERROR | E_PARSE | E_CORE_ERROR);


if ( strlen($name) < 1 ){
$msgerror=$msgerror."* your name field is missing<BR />";
$status= "NOTOK";}	

if ( strlen($message) < 5 ){
$msgerror=$msgerror."* your Message field is blank must be more than 5 words<BR/>";
$status= "NOTOK";}	


if (!stristr($email,"@") OR !stristr($email,".")) {
$msgerror=$msgerror."* your email address is not correct<BR />";
$status= "NOTOK";}   


if($status=="OK"){// echo $query;
$headers="";
$headers4="yourname@domain.com"; // Change this address within quotes to your address //
$headers.="Reply-to: $headers4\n";
$headers .= "From: $headers4\n";
$headers .= "Errors-to: $headers4\n";
$headers = "Content-Type: text/html; charset=iso-8859-1\n".$headers;
mail($headers4,$subject,"Contactus <BR>
Name :$name
<BR>Email:$email
<br>Company:$company
<br>Message: $message","$headers");
$msg="Thank you! your message has been sent we will contact you soon.";
}
	}
?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
<!--[if IE 6]>
<script type='text/javascript' src='js/dd_belated_png.js'></script>
<script>DD_belatedPNG.fix('.pngfix');</script>
<![endif]-->
<title>Dezineplus : Contact Us</title>
<link rel="stylesheet" type="text/css" media="all" href="css/reset.css" />
<link rel="stylesheet" type="text/css" media="all" href="css/960.css" />
<link rel="stylesheet" type="text/css" media="all" href="css/style.css" />
<!-- Start menu css and js files here -->
<link rel="stylesheet" type="text/css" href="css/superfish.css" media="screen" />
<script type="text/javascript" src="js/jquery-1.3.2.min.js"></script>
<script type="text/javascript" src="js/hoverIntent.js"></script>
<script type="text/javascript" src="js/superfish.js"></script>
<script type="text/javascript">
		// initialise plugins
		jQuery(function(){
			jQuery('ul.sf-menu').superfish();
		});
</script>
<!-- End menu css and js files here -->
</head>
<body>
<div class="subbg">
<div class="subheader">
      <!--start:header -->
      <div class="container_16">
            <!--start:header container -->
            <!--start:logo -->
            <div class="grid_5">
			<img src="images/logo.png" alt="DesignPlus" class="pngfix logo"/>
			</div>
            <!--end:logo -->
            <div class="grid_11">
                  <!--start:menu grid -->
                  <div class="top-menu pngfix">
                        <!--start:top-menu -->
                        <ul class="sf-menu">
                              <!--start:sf-menu -->
                              <li> <a href="index.html">Home</a> </li>
                              <li> <a href="aboutus.html">About Us</a> </li>
                              <li> <a href="services.html">Services</a>
                                    <ul>
                                          <!--start:dropdown -->
                                          <li> <a href="#">Services 1</a>
                                                <ul>
                                                      <li><a href="#">Sub Services 1</a></li>
                                                      <li><a href="#">Sub Services 2</a></li>
                                                </ul>
                                          </li>
                                          <li><a href="#">Services 2</a></li>
                                          <li><a href="#">Services 3</a></li>
                                    </ul>
                                    <!--end:dropdown -->
                              </li>
                              <li> <a href="portfolio.html">Portfolio</a>
                                    <ul>
                                          <!--start:dropdown -->
                                          <li><a href="#">Web Designing</a></li>
                                          <li><a href="#">Logo Designing</a></li>
                                          <li><a href="#">SEO Marketing</a></li>
                                    </ul>
                                    <!--end:dropdown -->
                              </li>
                              <li> <a href="blog.html">Blog</a> </li>
                              <li class="current"> <a href="contact.php">Contact Us</a> </li>
                        </ul>
                        <!--end:sf-menu -->
                        <span class="rightcorner pngfix"></span> </div>
                  <!--end:top-menu -->
            </div>
            <!--end:menu grid -->
            <div class="grid_16">
                  <!--start:subtitle grid -->
                  <div class="subtitle">
                        <!--start:subtitle -->
                        <h1><b>Plus Company Located At!</b></h1>
                        <p>This is paragraph html element to use for your description of the about company profile.</p>
                  </div>
                  <!--end:subtitle -->
            </div>
            <!--end:subtitle grid -->
      </div>
      <!--end:header container -->
</div>
</div>
<!--end:header -->
<div class="clear">&nbsp;</div>
<div class="container_16">
      <!--start:content container -->
      <div class="grid_11 sepline">
            <!--start:left content-->
            <div class="box-content">
                  <!--start:box-content -->
                  <h2>Contact Us!</h2>
                  <p>Vestibulum ante ipsum primis in faucibus orci luctus et ultrices posuere cubilia Curae; Phasellus placerat bibendum urna, id faucibus ligula commodo facilisis </p>
                  <p><b>Donec sollicitudin dictum ultrices. Donec varius dui et risus pretium molestie</b></p>
                  <br />
                  <!-- Start Contact Form -->
                  <form action="contact.php" method="post" name="form1" id="form1" class="contactform" style="margin:0px; width:200px; ">
                        <p>First Name *:
                              <input type='text' value='' size='50' maxlength='50' name='name' class='txtarea required'/>
                        </p>
                        <p>Your e-mail *:
                              <input name="email" type="text" size='50'  id="from" value="" class="required" />
                        </p>
                        <p>Company Name :
                              <input type='text' value='' size='50' maxlength='50' name='company'/>
                        </p>
                        <p>Subject :
                              <input name="subject" type="text" id="subject" size='50'  value=""/>
                        </p>
                        <p>Message *:
                              <textarea name="message" cols="38" rows="5" id="message"></textarea>
                        </p>
                        <p>
                              <input name="submit" class="" type="image" src="images/submit.gif" value="Send Message" />
                        </p>
                  </form>
                  <br />
            </div>
            <!--end:box-content -->
      </div>
      <!--end:left content-->
      <div class="grid_5">
            <!--start:right content-->
            <div class="box-content">
                  <!--start:box-content -->
                  <h4>Telephone</h4>
                  <p>Phone 1 : +55 5555 5555</p>
                  <p>Phone 2 : +55 5555 5555</p>
                  <br />
                  <h4>E-Mail</h4>
                  <p><a href="#">support@ornare.com</a></p>
                  <p><a href="#">info@ornare.com</a></p>				  
                  <p><a href="#">customer.care@ornare.com</a></p>				  				  
            </div>
            <!--end:box-content -->
      </div>
      <!--end:right content-->
</div>
<!--end:content container -->
<div class="clear"></div>
<!-- End middle content -->
<div class="footer">
      <!--start:footer -->
      <div class="container_16">
            <!--start:footer container -->
            <div class="footer_left">
                  <!--start:footer left part-->
                  <p> &copy; Copyright 2009 All Rights Reserved by <a href="#">Ornare.com</a></p>
	       </div>
            <!--start:footer left part-->
            <div class="footer_right">
                  <!--start:footer right part-->
                  <p>Designed and Developed by <a href="http://www.themeflash.com" target="_blank">Themeflash.com</a></p>
            </div>
            <!--end:footer right part-->
      </div>
      <!--end:footer container -->
</div>
<!--end:footer -->
</body>
</html>